﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.Globalization;

namespace SPVisualDev.VSAddin.Dialogs.PropertySheets
{
    internal class EventReceiverCollectionTypeConverter : TypeConverter
    {
        public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
        {
            return "Total: " + ((List<EventReceiverInfo>)value).Count.ToString() + " - <click the button to the right to edit>";
        }
    }
}
